﻿using System.Reflection;

namespace EsbMonitorMessages.Domain
{
    public sealed class MessageAssemblyInfo : ValueObject<MessageAssemblyInfo>
    {
        public string MessageAssemblyName { get; private set; }

        public MessageAssemblyInfo(string assemblyFullName)
        {
            MessageAssemblyName = assemblyFullName;
        }

        public MessageAssemblyInfo(Assembly assembly)
        {
            MessageAssemblyName = assembly.FullName;
        }
    }
}